package com.vegetable.modules.entity.inbound.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.vegetable.common.base.BaseEntity;
import com.vegetable.modules.entity.inbound.AgentDeliveryDetailPack;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(value="加工打包统计", description="加工打包统计")
public class PackDeliverySequenceVO extends BaseEntity {
    @Excel(name = "单号")
    @ApiModelProperty(value = "单号")
    private String docNo;

    @Excel(name = "日期", format = "yyyy-MM-dd")
    @ApiModelProperty(value = "订单时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date orderTime;

    @Excel(name = "成品名")
    @ApiModelProperty(value = "成品名称")
    private String finishName;

    @Excel(name = "成品标重")
    @ApiModelProperty(value = "成品标重")
    private BigDecimal finishStandard;

    @Excel(name = "成品规格")
    @ApiModelProperty(value = "成品规格")
    private String finishSpecsName;
    @Excel(name = "成品数量")
    @ApiModelProperty(value = "成品数量")
    private Integer finishNumber;

    @Excel(name = "加工人")
    @ApiModelProperty(value = "班组名称")
    private String teamName;

    @Excel(name = "人工费")
    private BigDecimal laborCost;

    @Excel(name = "成品重量")
    @ApiModelProperty(value = "成品重量")
    private BigDecimal finishWeight;

    @Excel(name = "蔬菜金额")
    @ApiModelProperty(value = "成品商品价格")
    private BigDecimal finishMoney;

    @Excel(name="包装金额")
    @ApiModelProperty(value = "成品包装价格")
    private BigDecimal finishPackageMoney;

    @Excel(name = "原料成本")
    @ApiModelProperty(value = "成品成本价格")
    private BigDecimal finishCostWeight;

    @Excel(name = "原料名")
    @ApiModelProperty(value = "原料名")
    private String materialName;

    @ApiModelProperty(value = "原料标重")
    private BigDecimal materialStandard;

    @Excel(name = "原料数量")
    @ApiModelProperty(value = "原料数量")
    private Integer materialNumber;

    @Excel(name = "原料重量")
    @ApiModelProperty(value = "原料重量")
    private BigDecimal materialWeight;

    @Excel(name = "原料损耗比")
    @ApiModelProperty(value = "原料损耗率")
    private BigDecimal materialLossRate;

    @ApiModelProperty(value = "成品明细id")
    private Long finishId;

    @ApiModelProperty(value = "商品包装费用")
    @TableField(exist = false)
    private List<AgentDeliveryDetailPack> finishPackages;

}
